﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Page.Master" AutoEventWireup="true" CodeBehind="Searchpolicy.aspx.cs" Inherits="HealthInsuranceMgm.Admin.Searchpolicy" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="frmSearchPolicy" runat="server">
    
    <fieldset>
        <legend>Detail Search </legend>
        <table>
        <tr> 
        <td>
            <asp:TextBox ID="txtsearchpolicy" runat="server"></asp:TextBox></td>
        <td>
            <asp:RadioButton ID="radsearchname" runat="server" Text="By Name" 
                GroupName="rad" AutoPostBack="True" 
                oncheckedchanged="radsearchname_CheckedChanged" /></td>
        <td>  
            <asp:RadioButton ID="radsearchAmount" runat="server" Text="By Amount" 
                GroupName="rad" oncheckedchanged="radsearchAmount_CheckedChanged" 
                AutoPostBack="True" /></td>
        <td>
            <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">
                <asp:ListItem Value="15000000">15.000.000</asp:ListItem>
                <asp:ListItem Value="30000000">30.000.000</asp:ListItem>
                <asp:ListItem Value="45000000">45.000.000 </asp:ListItem>
                <asp:ListItem Value="60000000">&gt;60.000.000</asp:ListItem>
            </asp:DropDownList>
            To
            <asp:DropDownList ID="DropDownList2" runat="server">
             <asp:ListItem Value="30000000">30.000.000</asp:ListItem>
                <asp:ListItem Value="45000000">45.000.000</asp:ListItem>
                <asp:ListItem Value="60000000">60.000.000 </asp:ListItem>
                <asp:ListItem Value="120000000000">&gt;60.000.000 </asp:ListItem>
            </asp:DropDownList>
        </td>
        <td> 
            <asp:Button ID="btnsearch" runat="server" Text="Search" 
                onclick="btnsearch_Click" /></td>
        </tr>
    </table>
    <hr />
        

    </fieldset>
    <fieldset>
        <legend><h3>Search Result</h3></legend>
        <asp:GridView ID="grvpolicyResult" runat="server" AutoGenerateColumns="False">
          <Columns>
            <asp:BoundField DataField="PolicyId" HeaderText="PolicyId" 
                SortExpression="PolicyId" />
            <asp:BoundField DataField="PolicyName" HeaderText="Policy Name" />
            <asp:BoundField DataField="PolicyDesc" HeaderText="Description" />
            <asp:BoundField DataField="Amount" HeaderText="Amount" />
            <asp:BoundField DataField="Emi" HeaderText="EMI" />
              <asp:BoundField DataField="CompanyId" HeaderText="CompanyId" />
                <asp:BoundField DataField="MedicalId" HeaderText="MedicalId" />
                </Columns>
        </asp:GridView>
    </fieldset>
</form>
</asp:Content>
